package impl

import (
	"github.com/starmotioncf/soutchatinternal/service"
)

type productService struct {
	*service.Service
	// productRepo repository.ProductRepository
}

func NewProductService(s *service.Service) service.ProductService {
	_s := &productService{
		Service: s,
		// productRepo: productRepo,
	}
	return _s
}

// func (s *productService) GetListByPlatform(ctx context.Context) (res []*dto.ProductByPlatformItem, err error) {
// list, err := s.productRepo.GetByPlatform(ctx, s.GetCurrentRegion(ctx), platform)
// if err != nil {
// 	return
// }
// res = make([]*dto.ProductByPlatformItem, len(list))
// for i, item := range list {
// 	res[i] = &dto.ProductByPlatformItem{
// 		Productid:   item.Productid,
// 		Price:       item.Price,
// 		Coin:        item.Coin,
// 		CoinDisplay: item.CoinDisplay,
// 		CoinAdd:     item.CoinAdd,
// 		Identifier:  item.Identifier,
// 		Icon:        item.Icon,
// 	}
// }
// 	return
// }
